import {createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import Login from "@/views/login"
import Page404 from "@/views/Page404";
import registryPermission from "./permission";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [

    {
      path: "/login",
      component: Login,
      hidden: true
    },
    {
      path: '/:pathMatch(.*)*',
      component: Page404
    }

  ]
})

registryPermission(router)

export default router
